public class cone extends liti1{
    double r,h;
    cone(double r,double h){
    	this.r=r;
    	this.h=h;
    }
	public double getArea() {
		return 3.14*r*r+3.14*r*Math.sqrt(r*r+h*h);
	}
	public double getvolume() {
		return 3.14*r*r*h/3;
	}

}
